package com.d.business.service;

import com.d.business.domain.BDingTalkDO;
import com.d.business.domain.dto.BDingTalkDTO;

import java.util.List;
import java.util.Map;

/**
 * 钉钉审批关联表
 *
 * @author wang
 * @email wangfst@foxmail.com
 * @date 2024-03-25 10:53:34
 */
public interface BDingTalkService {

	BDingTalkDO get(Integer id);

	List<BDingTalkDO> list(Map<String, Object> map);

	int count(Map<String, Object> map);

	int save(BDingTalkDO bDingTalk);

	int update(BDingTalkDO bDingTalk);

	int remove(Integer id);

    int updateDingTalkStatus(Integer id, Integer status,String msg,String instanceId);

    List<BDingTalkDTO> getListByTypeAndValid(Integer type);

	BDingTalkDTO getById(Integer id);

	void updateDingTalkStatusBySourceIdsAndType(String sourceIds, Integer type, Integer status, String msg, String instanceId);

    BDingTalkDTO getByInstanceIdAndType(String instanceId, int type);
}
